cmake_minimum_required(VERSION 3.0.0)
project(test_epoll VERSION 0.1.0)

include(CTest)
enable_testing()

find_package(PkgConfig)
pkg_search_module(SIGC++ REQUIRED sigc++-2.0)

add_executable(test_epoll main.cpp EventLoop.cpp timer.cpp)
target_include_directories(
    test_epoll
    PUBLIC
    ${SIGC++_INCLUDE_DIRS}
)
target_link_libraries(
    test_epoll 
    -pthread
    ${SIGC++_LIBRARIES})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
